﻿using IntelligentAgriculture.Domain.Entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IntelligentAgriculture.Contracts.Interface
{
    public interface iDeathModelRepository
    {
        /// <summary>
        /// 获取档案表母羊在哺乳的耳号
        /// </summary>
        /// <returns></returns>
        Task<List<Sheepfilemodel>> GetEagShow();
     
        Task<List<Sheepfilemodel>> GetBuildByEar();

        /// <summary>
        /// 耳标 显示 查询 分页 功能
        /// </summary>
        /// <returns></returns>
        Task<IQueryable<Deathmodel>> GetShow();

        /// <summary>
        /// 添加功能
        /// </summary>
        /// <param name="entity"></param>
        /// <returns></returns>
        Task<int> Add(List<Deathmodel> entity);


        /// <summary>
        /// 逻辑删除功能
        /// </summary>
        /// <param name="id">id</param>
        /// <returns>返回受影响行数</returns>
        Task<int> Delete(int id);

        /// <summary>
        /// 批量逻辑删除
        /// </summary>
        /// <param name="ids">数组</param>
        /// <returns>返回受影响行数</returns>
        Task<int> DeleteRange(IEnumerable<int> ids);


        /// <summary>
        /// 反填
        /// </summary>
        /// <param name="id"></param>
        /// <returns>返回列表</returns>
        Task<Deathmodel> Find(int id);

        /// <summary>
        /// 修改耳号
        /// </summary>
        /// <param name="eartag"></param>
        /// <returns></returns>
        Task<int> UpdateAsync(Deathmodel Death);


    }
}
